<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>邮箱激活</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">



    <style>
        body {
            height: auto;
        }
        .emailBox{
            margin:0 auto;
            width:500px;
        }
        .tipBox{
            background:#f4f4f4;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            padding:10px;
            margin-top:50px;
        }

        .top {
            height: 100px;
            position: relative;
            background: #F0F0F0 url(/static/images/1.png) no-repeat center center;
            background-size:1400px auto;
        }

        .top_center {
            position: absolute;
            z-index: 4;
            top: 26px;
            width: 100%;
        }


        .rf {
            float: right;
            overflow: hidden;
        }

        .w1000 {
            width: 1000px;
            margin: 0px auto;
            height: auto;
            overflow: auto;
        }
        .yhzx {
            text-align: right;
            font-size: 17px;
            color: #1577dc;
        }


        .content {
            width: 1200px;
            margin: 0 auto;
            align-content: center;
        }

    </style>
</head>
<body>
<div class="top">
    <div class="top_left"></div>
    <div class="top_center">
        <div class="w1000" style="position:relative;">
            <div class="rf">
                <div class="yhzx">
                    <a href="/pages/register/unit/signUp.html">企业注册</a>&nbsp;|&nbsp;
                    <a href="/pages/register/user/userSignUp.html">个人注册</a>&nbsp;|&nbsp;
                    <a href="/">已有账号？去登陆</a>
                </div>
            </div>
            <div class="cf"></div>
        </div>
    </div>
    <div class="top_right"></div>
</div>


<div class="content">
    <div class="layui-row registerBox">
        <div class="layui-col-xs4 layui-bg-blue">
            1、填写注册信息
        </div>
        <div class="layui-col-xs4 layui-bg-blue borderCustom">
            2、验证邮箱
        </div>
        <div class="layui-col-xs4 layui-bg-gray">
            3、系统审核
        </div>
    </div>
    <div class="emailBox">
        <!--机构信息-->
        <p style="line-height: 30px;">验证邮箱</p>
        <p class="textGray">感谢注册！邮件已发送至你的邮箱:<a target="_blank" id="email"></a>。请您点击链接，并验证平台服务账号</p>
        <div class="tipBox">
            <p>温馨提示：</p>
            <p>1、邮件可能会有延迟</p>
            <p>2、注意是否被当做垃圾邮件拒收</p>
            <p>3、若未收到邮件，可<span class="zaici" style="cursor:pointer;font-weight: bold">再次发送</span></p>
            <p>4、请仔细核对邮箱地址，你可以返回<a class="tianxie" style="cursor:pointer;font-weight: bold">重新填写</a></p>
        </div>
    </div>
</div>

<div class="footer" style="background: #f3f3f3;padding: 30px 0px;box-sizing: border-box;">
    <div class="footer_con" style="color: #333;width: 345px;margin: 0px auto;box-sizing: border-box;padding: 0;">

        <!--
              <img class="lf" src="/statics/images/zd.png"  style="border: none;vertical-align: middle;float: left;margin: 30px 20px 10px 0px;
      }"/>
        -->
        <div class="footer_con_text" style="width: 500px;text-align: left;">
            <!--
             <p style="margin: 0;padding: 0;word-wrap: break-word;box-sizing: border-box;">
                <a>设为首页</a>|
                <a>联系我们</a>|
                <a>本站声明</a>
            </p>
            -->
            <p>主办单位：广西壮族自治区人民政府  技术支持：河北霄岭工程设计咨询有限公司</p>

        </div>
    </div>
</div>


<script src="/static/js/main.js"></script>
<script type="text/javascript">
    layui.use(['jquery', 'configure', 'configureCom', 'sessionFun', 'bluebird'], function () {
        var form = layui.form;
        var configure = layui.configure;
        var configureCom = layui.configureCom;
        var sessionFun = layui.sessionFun;
        var $ = layui.jquery;
        var typeItem = '2010';//注册类型 2010企业 2020临时 2030个人
        var registerData = sessionFun.get(configure.SESSION_REGISTER_DATA);
        console.log(registerData);
        if(registerData.orgLinkMailbox){
            $('#email').html(registerData.orgLinkMailbox);
            $('#email').attr('href',configureCom.gotomail(registerData.orgLinkMailbox));
        }
        if(registerData.email){
            $('#email').html(registerData.email);
            $('#email').attr('href',configureCom.gotomail(registerData.email));
        }
        //再次发送
        $('.zaici').on('click',function () {
            var dataNext ={};
            if(registerData.orgLinkMailbox){//如果是企业注册
                dataNext = {
                    userName: registerData.userName,
                    orgLinkMailbox: registerData.orgLinkMailbox
                };
            }
            if(registerData.email){//如果是个人注册
                dataNext = {
                    userName: registerData.realName,
                    orgLinkMailbox: registerData.email
                };
            }
            configureCom.postDataAjax(configure.REG_SEND_EMAIL_BOX_AGAIN_HTTP,dataNext).then(function (res) {
                console.log(res);
                top.layer.msg('再次发送成功,请注意查收!');
            })
        });
        //重新填写
        $('.tianxie').on('click',function () {
            //history.go(-1);//返回上一页
            if(registerData.orgLinkMailbox){//如果是企业注册
                location.href = '/pages/register/unit/signUp.html';
            }
            if(registerData.email){//如果是个人注册
                location.href = '/pages/register/user/userSignUp.html';
            }
        })


    });

</script>
</body>
</html>
